<?php

namespace app\api\model;

use think\Model;

class ModelingServices extends Model
{
//    protected $hidden = ['pivot'];

    public static function getAll()
    {
        return self::order("weigh desc")->select();
    }

    public static function getServiceMoney($serviceId)
    {
        return self::whereIn('id', $serviceId)->sum("service_price");
    }

}
